import { request } from '@/utils/request';

/**
 *
 * @param params 分页
 * @returns
 */
export function logPage(params: any) {
  return request.get({ url: '/upms/log/page', params });
}

/**
 * 删除日志
 */
export function deleteLog(id: string) {
  return request.delete({ url: `/upms/log/${id}` });
}

/**
 * 分页查询登录日志
 * @param params 查询条件
 * @returns
 */
export function logLoginPage(params?: { current?: number; size?: number; createId?: number }) {
  return request.get({ url: '/upms/loglogin/page', params });
}
